package org.exhibition.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.exhibition.domain.entity.UserTicket;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDate;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zafkiel
 * @since 2025-07-16
 */
@Mapper
public interface UserTicketMapper extends BaseMapper<UserTicket> {

    //根据票的id获取票的开始时间
    @Select("select exhi_date from exhibition_ticket where id=#{id}")
    LocalDate getTicketStartTimeById(Integer id);

}
